package com.huangmb.anymark.server.service;

import java.io.Serializable;
import java.util.List;

/**
 * 定义BaseService的通用操作
 * @author hmb
 * @version 1.0
 * @since 2016/5/4 21:06
 */
public interface BaseService<T> {
    public void save(T entity);

    public void update(T entity);

    public void delete(Serializable id);

    public T getById(Serializable id);

    public List<T> getByHQL(String hql, Object... params);
}
